function [ status ] = mx_eyelink_current_mode( )
%MX_EYELINK_CURRENT_MODE This function tests the current tracker mode, and 
% returns a set of flags based of what the mode is doing. The most useful flag
% using the EXPTSPPT toolkit is IN_USER_MENU to test if the EyeLink Abort menu
% has been activated.
%
% Returns:
% Set of bitflags that mark mode function: IN_DISCONNECT_MODE if disconnected. 
% IN_IDLE_MODE if off-line (Idle mode). IN_SETUP_MODE if in Setup-menu related 
% mode. IN_RECORD_MODE if tracking is in progress. IN_PLAYBACK_MODE if currently
% playing back data. IN_TARGET_MODE if in mode that requires a fixation target. 
% IN_DRIFTCORR_MODE if in drift-correction. IN_IMAGE_MODE if displaying grayscale 
% camera image. IN_USER_MENU if displaying Abort or user-defined menu.
%
% IN_DISCONNECT_MODE   16384
% IN_UNKNOWN_MODE   0
% IN_IDLE_MODE   1
% IN_SETUP_MODE   2
% IN_RECORD_MODE   4
% IN_TARGET_MODE   8
% IN_DRIFTCORR_MODE   16
% IN_IMAGE_MODE   32
% IN_USER_MENU   64
% IN_PLAYBACK_MODE   256
%
%----------------------------------------------------------------------------
% Copyright Eduardo Aponte 2013
% aponteeduardo@gmail.com